package com.msw.jcwapi.dx.dxrm.service.impl;

import com.msw.jcwapi.dx.dxrm.entity.Dxrm;
import com.msw.jcwapi.dx.dxrm.mapper.DxrmMapper;
import com.msw.jcwapi.dx.dxrm.service.IDxrmService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.msw.jcwapi.wb.wbrm.entity.Wbstruct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author author
 * @since 2025-04-28
 */
@Service
public class DxrmServiceImpl extends ServiceImpl<DxrmMapper, Dxrm> implements IDxrmService {

    @Autowired
    private DxrmMapper dxrmMapper;

    //查询全部
    @Override
    public List<Dxrm> list() {
        return dxrmMapper.list();
    }

    //编辑(通过rmid编辑)
    @Override
    public boolean update(Dxrm dxrm) {
        return dxrmMapper.Edit(dxrm);
    }

}
